/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tan_cursoCriteria extends AbstractORMCriteria {
	public final IntegerExpression cur_id;
	public final StringExpression cur_nombre;
	
	public Tan_cursoCriteria(Criteria criteria) {
		super(criteria);
		cur_id = new IntegerExpression("cur_id", this);
		cur_nombre = new StringExpression("cur_nombre", this);
	}
	
	public Tan_cursoCriteria(PersistentSession session) {
		this(session.createCriteria(Tan_curso.class));
	}
	
	public Tan_cursoCriteria() throws PersistentException {
		this(orm.AnotacionPersistentManager.instance().getSession());
	}
	
	public orm.Tan_alumnoCriteria createTan_alumnoCriteria() {
		return new orm.Tan_alumnoCriteria(createCriteria("ORM_Tan_alumno"));
	}
	
	public orm.Tan_subsectorCriteria createTan_subsectorCriteria() {
		return new orm.Tan_subsectorCriteria(createCriteria("ORM_Tan_subsector"));
	}
	
	public Tan_curso uniqueTan_curso() {
		return (Tan_curso) super.uniqueResult();
	}
	
	public Tan_curso[] listTan_curso() {
		java.util.List list = super.list();
		return (Tan_curso[]) list.toArray(new Tan_curso[list.size()]);
	}
}

